﻿using RXY_Mall.Application.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace RXY_Mall.Shop.Controllers
{
    public class ToolsController : BaseController
    {
        private IBaseService _baseService;
        public ToolsController()
        {
            _baseService = new BaseService();
        }

        public ActionResult GetPrivoceList( int id=0)
        {
            return Json(_baseService.GetPrivoceListByPid(id));
        }
        public ActionResult GetCategoryList(int id = 0,int tid=1)
        {
            return Json(_baseService.GetCategoryListByPid(id, tid));
        }
       
    }
}